package com.abigdreamer.im.server.ui.desktop;

import java.awt.event.MouseEvent;

public class NewDeskTopItem extends EIMDesktopItem {

	private static int state=1;
	public NewDeskTopItem() {
		super();
		this.addMouseListener(this);
		this.setText("新建"+state);
		this.setIcon("newItem.png");
		state+=1;
		ItemConfig config=new ItemConfig();
		config.setItemClass(NewDeskTopItem.class.getName());
		config.setItemIconPath("newItem.png");
		config.setItemText(this.getText());
		this.setCofig(config);
	}

	public NewDeskTopItem(EIMDesktop desktop, ItemConfig cofig) {
		super(desktop, cofig);
	}

	public void mouseClicked(MouseEvent e) {
		super.mouseClicked(e);
		if(e.getClickCount()==2){
			
		}

	}

	public void mousePressed(MouseEvent e) {

	}

	public void mouseReleased(MouseEvent e) {

	}

}
